package com.ksxy.afingerprint.utils

import android.content.Context
import android.widget.Toast

/**
 *  author : chenyinying
 *  e-mail : me@korion.cn
 *  time   : 2018/07/07
 *  desc   :
 *  version: 1.0
 */

public fun  Context.showToast(msg: String, duration: Int){
    Toast.makeText(this, msg, duration).show()
}

public fun  Context.showShortToast(msg: String){
    this.showToast(msg, Toast.LENGTH_SHORT)
}

public fun  Context.showLongToast(msg: String){
    this.showToast(msg, Toast.LENGTH_LONG)
}